// alert("Hello World!");
let name = "Peter";
console.log("Hello, " + name + "!");
document.writeln("niahao " + name + "!");
function add(a, b) {
    return a + b;
}
let result = add(3, 4);
document.writeln("3 + 4 = " + result);
let add2 = (a, b) => a + b;
result = add2(3, 4);
document.writeln("3 + 4 = " + result);
let add3 = function(a, b) { return a + b; };
result = add3(3, 4);
document.writeln("3 + 4 = " + result);
// let student = { 
//     name: "Peter",
//      age: 20 ,
//      jieshao: function() {
//          console.log("My name is " + this.name + ", I am " + this.age + " years old."); 
//      },
//      jianmian(){
//         console.log("My name is " + this.name + ", I am " + this.age + " years old,nihao");
//      }
// };
// student.jieshao(); 
// student.jianmian();
// let person = { 
//     name: "John", 
//     age: 30 
// };
// console.log(person);
// alert(person);
// alert(JSON.stringify(person));
// alert(JSON.parse(JSON.stringify(person)).name);

let time = document.querySelector(".shijian");
time.innerHTML = 2002.1025;